var cc__decorate = __decorate;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var $2BundleManager = require("BundleManager");
var $2WeChatConstant = require("WeChatConstant");
var $2ADManager = require("ADManager");
var cc__decorator = cc._decorator;
var ccp_ccclass = cc__decorator.ccclass;
var ccp_property = cc__decorator.property;
var def_VideoControl = /* */function (_cc$Component80) {
  babel_inherits(c, _cc$Component80);
  var _super97 = babel_createSuper(c);
  function c() {
    babel_classCallCheck(this, c);
    return _super97.apply(this, arguments);
  }
  babel_createClass(c, [{
    key: "onLoad",
    value: function onLoad() {
      var _this222 = this;
      switch ($2ADManager.default.instance.sdkType) {
        case $2ADManager.SDK_TYPE.WeChat:
          this.node.opacity = 0;
          this.node.getComponent(cc.Sprite).spriteFrame = $2BundleManager.default.instance.getBundleRes("BundleTexture", "ui/Video2", cc.SpriteFrame);
          this.scheduleOnce(function () {
            _this222.node.opacity = 160;
          }, $2WeChatConstant.default.btnDelay);
      }
    }
  }]);
  return c;
}(cc.Component);
def_VideoControl = cc__decorate([ccp_ccclass], def_VideoControl);
exports.default = def_VideoControl;